<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ page import="entity.User" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>个人中心</title>
  </head>
  <body>
  <table>
  		<jsp:include page="top.jsp"/>
  	    <tr valign="top">
  	    <td width="20%">
  	     <jsp:include page="leftAdmin.jsp"/>
  	    </td>
  	    <td align="center">
  	    <%
  	    User user = (User)request.getSession().getAttribute("user");
  	    if(user.getUsername()!=null){
  	    %>
		   <br>用户名:<%=user.getUsername() %>
		   <br>密码:<%=user.getPasswd() %>
	   <%
	   }else{
       %>
   	   		<a href="<%=pageContext.getServletContext().getContextPath() %>/jsp/login.jsp">请登录</a>
   	   <%
   	   } 
   	   %>
       </td>
   	   </tr>
   </table>
  </body>
</html>
